package com.sleepcamel.resteasyConfigurator.components.tree.listeners;

import com.sleepcamel.rest.domain.TreeNode;
import com.sleepcamel.resteasyConfigurator.components.listeners.DeleteKeyListener;
import com.sleepcamel.resteasyConfigurator.model.command.RemoveNodeAction;


public abstract class TreeDeleteKeyListener extends DeleteKeyListener {

	abstract public Object getCurrentSelection();

	@Override
	public void doDelete() {
		new RemoveNodeAction((TreeNode) getCurrentSelection()).run();
	}

}
